package bc

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type BcPhoneRouter struct {
}

// InitBcPhoneRouter 初始化 bcPhone表 路由信息
func (s *BcPhoneRouter) InitBcPhoneRouter(Router *gin.RouterGroup) {
	bcPhoneRouter := Router.Group("bcPhone").Use(middleware.OperationRecord())
	bcPhoneRouterWithoutRecord := Router.Group("bcPhone")
	var bcPhoneApi = v1.ApiGroupApp.BcApiGroup.BcPhoneApi
	{
		bcPhoneRouter.POST("createBcPhone", bcPhoneApi.CreateBcPhone)             // 新建bcPhone表
		bcPhoneRouter.DELETE("deleteBcPhone", bcPhoneApi.DeleteBcPhone)           // 删除bcPhone表
		bcPhoneRouter.DELETE("deleteBcPhoneByIds", bcPhoneApi.DeleteBcPhoneByIds) // 批量删除bcPhone表
		bcPhoneRouter.PUT("updateBcPhone", bcPhoneApi.UpdateBcPhone)              // 更新bcPhone表
		//bcPhoneRouterWithoutRecord.POST("getPhone", bcPhoneApi.GetPhone)             // 获取手机号
	}
	{
		bcPhoneRouterWithoutRecord.GET("findBcPhone", bcPhoneApi.FindBcPhone)       // 根据ID获取bcPhone表
		bcPhoneRouterWithoutRecord.GET("getBcPhoneList", bcPhoneApi.GetBcPhoneList) // 获取bcPhone表列表
	}
}
